import { defineStore} from "pinia";

export const useUserStore = defineStore('user', {
    state: () => ({
        id: null,
        role: null,
        token: null,
        userInfostate: false
        }
    
    ),
    actions: {
        changeuser(id, role, token) {
            this.id = id;
            this.role = role;
            this.token = token;
        }
        ,
        changeuserInfostate() {
            this.userInfostate = !this.userInfostate;
        }
    }
})